import { Column, Entity, PrimaryColumn } from "typeorm";
import { BaseEntity } from "./base.entity";

@Entity({ name: 'Letter' })
export default class LetterEntity extends BaseEntity {
  @PrimaryColumn({ type: 'varchar', length: 20 })
  SysID: string;

  @Column({ type: 'varchar', length: 25 })
  ToName: string;

  @Column({ type: 'varchar', length: 25 })
  FromName: string;

  @Column({ type: 'varchar', length: 255 })
  CodeUrl: string;

  @Column({ type: 'text' })
  Content: string;

  @Column({ type: 'bigint' })
  Author: number;
}